package com.oa.business.org.dto;

import com.oa.common.DomainDto;
import com.oa.framework.org.domain.Position;
import lombok.Getter;
import lombok.Setter;

/**
 * @author cuichao
 */
@Getter
@Setter
public class PositionDto implements DomainDto<Position> {

    private Long positionId;

    private String positionCode;

    private String positionName;

    private Short positionLevel;

    private String description;


    @Override
    public Position transform() {
        Position position = new Position();
        position.setPositionId(positionId);
        position.setPositionCode(positionCode);
        position.setPositionName(positionName);
        position.setPositionLevel(positionLevel);
        position.setDescription(description);
        return position;
    }
}
